﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MicropleSoft.Controls;

namespace MicropleSoft.WmsApp.Base.Business
{
    public interface IBusinessModelControl<TWrap>
    {
        void DataBind(TWrap t, IDataBinderPanel dataBinderPanel);
        void DataBind(TWrap t, XGridControl xGridControl);
        void LoadWrap(string poId);
        TWrap GetCurrentWrap();
        void SaveWrap(TWrap wrap);
        void NewWrap();
        string TableName { get; }
        string DetailTableName { get; }
        string BusinessCode { get; }
        void AddDetail();
        void EditDetail();
    }
}
